package com.emergency.data.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@ApiModel("测试对象Param")
public class TestParam {

    @ApiModelProperty("名称")
    @NotBlank(message = "name不能为空")
    @Size(max = 10, message = "name长度不能超过10")
    private String name;

    @ApiModelProperty("数据")
    @NotBlank(message = "data 不能为空")
    private String data;
}
